{% extends "@CoreBundle/layout/main.html.twig" %}

{% block page_title %}添加学校{% endblock %}

{% block body_javascript %}
	{% if draftType %}
		<script>
var draftType = {{ draftType }};
var admin_draft_getLatestByType = "{{ path('admin_draft_getLatestByType', {'type': draftType}) }}";
var admin_draft_autoSave = "{{ path('admin_draft_autoSave') }}";
var admin_draft_getById = "{{ path('admin_draft_getById') }}";
		</script>
		{{ encore_entry_script_tags('core_draft') }}
	{% else %}
		{{ parent() }}
	{% endif %}
{% endblock %}


{% block page %}
<div class="card">
    <form method="POST" action="{{ path("admin_api_jw_school_add") }}" class="form-horizontal ajaxform needs-validation" accept-charset="UTF-8" novalidate>
        <div class="card-body" style="display: block;">
    {{ formData|raw }}
            <div class="form-group">
                <label for="title" class="require">省市:</label>
                <div class="input-group">
                    <div id="distpicker">
                        <select name="province"></select>
                        <select name="city"></select>
                        <select name="district"></select>
                    </div>
                </div>
            </div>
        </div>
        <div class="card-footer">
            <div class="col-md-2"></div>
            <div class="col-md-8">
                <div class="btn-group">
                    <button type="submit" class="btn btn-sm btn-info " style="margin-right: 10px;">提交</button>
                    <button type="reset" class="btn btn-default btn-sm reset"><i class="fa fa-undo"></i>&nbsp;&nbsp;重置</button>
                </div>
            </div>
        </div>
    </form>
</div>
{% endblock %}
